Skip to content

Conversation

@realSquidCoder
Copy link
Contributor

Closes: #5305

@realSquidCoder realSquidCoder marked this pull request as ready for review April 7, 2025 15:38
@myk002 myk002 added this to 51.11-r2 Apr 8, 2025
@github-project-automation github-project-automation bot moved this to Todo in 51.11-r2 Apr 8, 2025
Copy link
Member

@myk002 myk002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs:

  • changelog entry
  • actually filling the bucket with data

@myk002 myk002 moved this from Todo to Review In Progress in 51.11-r2 Apr 8, 2025
Comment on lines 533 to 535
if (config.prefer_nicknamed) {
add_bucket(nicknamed_units, units, intervals, weights, NICKNAMED_CITIZEN_PREFERRED_WEIGHT);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This effectively removes nicknamed dwarves from the selection pool if prefer_nicknamed is false.

These code reviews take up a lot of my time. Please be sure to test your code carefully.

@myk002 myk002 moved this from Review In Progress to Todo in 51.11-r2 Apr 25, 2025
@myk002 myk002 removed this from 51.11-r2 Apr 25, 2025
in my testing turning off the prefer nicknamed used the jobs to categorize them . (i went from 16 nicknamed to 2 job units and 14 other units) so I'm pretty sure this works as i meant it to now
Copy link
Member

@myk002 myk002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good. please add documentation to the .rst file

@myk002 myk002 added this to 51.11-r2 May 3, 2025
@github-project-automation github-project-automation bot moved this to Todo in 51.11-r2 May 3, 2025
@myk002 myk002 merged commit af5dccf into DFHack:develop May 3, 2025
24 of 26 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in 51.11-r2 May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add "prefer nicknamed" for spectate

2 participants